#pragma once
#include <time.h>
#include <fstream>

struct Node {
	clock_t duration;
	int amount;
	int rightNum;
	char type;
};

struct Rank {
	Node* array;
	int amount;
	Rank() {
		array = nullptr;
		amount = 0;
	}
};

void ReadRankFromFile(Rank &rank, const char* filePath);
void WriteRankFromFile(Rank& rank, const char* filePath);
void push(Rank& rank, Node node);
void print(Rank& rank);